GXGetStyleTags
You can use the GXGetStyleTags function to examine one or more of the tag objects associated with a style object.
long GXGetStyleTags(gxStyle source, long tagType, long index, long count, gxTag items[]);
source
- A reference to the style object to examine the tag list of.
tagType
- The type of tag object to search for. A value of 0 indicates that you want to look for all tag types.
index
- The (1-based) index of the first such tag reference to return.
count
- The number of tag references to return.
items
- An array to hold the returned tag references.
- function result
- The number of tag references found that fit the criteria.
DESCRIPTION
TheGXGetStyleTags
function searches the tag list of the source style object for references to tag objects with the tag type specified by thetagType
parameter. If you specify 0 for thetagType
parameter, theGXGetShapeTags
function searches all tag types.You can use the
index
and thecount
parameters to specify which tag references of the appropriate type theGXGetStyleTags
function should return. Theindex
parameter indicates the first tag reference to return and thecount
parameter indicates how many tag references to return. Theindex
parameter must be greater than 0. Thecount
parameter must be greater than 0 or equal to thegxSelectToEnd
constant (-1), which indicates that all tag references (starting with the tag reference indicated by theindex
parameter) should be returned.The function result is the number of tag references found that fit the criteria. If you pass a value other than
nil
for theitems
parameter, theGXGetStyleTags
function returns in it the tag references that were found.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory style_is_nil index_is_less_than_one (debugging version) count_is_less_than_one (debugging version) Warnings index_out_of_range count_out_of_range SEE ALSO
Tag objects are introduced in the chapter "Introduction to Objects" in this book. Functions to create and manipulate tags objects, and a list of reserved tag types, are described in the chapter "Tag Objects" in this book.To change the set of tag references associated with a style, use the
GXSetStyleTags
function, described in the next section.